home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / network / net_co41.zip / netcont_.exe / MENU-PKT.BAT < prev    next >
DOS Batch File  |  1994-03-31  |  6KB  |  171 lines

  1. @ECHO OFF
  2. REM ---------------------------------------------------------------------
  3. REM Batch programm as a menu for calling Net-Control
  4. REM                                             (C) RzK Doris Köpke 02/94
  5. REM
  6. REM Calling this file with commandline parameters:
  7. REM  1) NET-MENU GO
  8. REM         Net-Control is started at once and begins with the data
  9. REM         sampling process automatically
  10. REM  2) NET-MENU GO STOP
  11. REM         Additionally to 1) Net-Control is stopped daily to start the
  12. REM         batch programm TESTDISK.BAT. This checks the logical structure
  13. REM         of the harddisk and starts Net-Control again, if no error is
  14. REM         detected.
  15. REM ---------------------------------------------------------------------
  16.  
  17. IF "%1x"=="x" GOTO START
  18. IF "%1"=="GO" GOTO NET-START
  19. IF "%1"=="go" GOTO NET-START
  20. %1 %2 %3 %4 %5 %6 %7 %8 %9
  21. :START
  22. BLUE
  23. @ECHO OFF
  24. ECHO ╔═════════════════════════════════════════════════╦═══════════════════════════╗
  25. ECHO ║  Net-Control  Menu                              ║ (C) RzK Doris Köpke 10/92 ║
  26. ECHO ╠═════════════════════════════════════════════════╩═══════════════════════════╣
  27. ECHO ║                (Select program by input of specified character:)            ║
  28. ECHO ╟─────────────────────────────────────┬───────────────────────────────────────╢
  29. ECHO ║                                     │                                       ║
  30. ECHO ║ 1 - Net-Control                     │ 4 - Net-Control with daily test of    ║
  31. ECHO ║                                     │     the logical structure of the      ║
  32. ECHO ║ 2 - Net-Control with direct start   │     harddisk (performed by CHKDSK)    ║
  33. ECHO ║     of data sampling                │     (Stops in case of an error)       ║
  34. ECHO ║                                     │                                       ║
  35. ECHO ║ 3 - Net-Control: Controlling        │                                       ║
  36. ECHO ║     the stored data                 │                                       ║
  37. ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
  38. ECHO ║ C - Configure Packet Driver and     │ S - Save Net-Control configuration    ║
  39. ECHO ║     Statistic Interface             │     and all *.SDF files               ║
  40. ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
  41. ECHO ║ N - New Net-Control Version         │ R - Register Net-Control              ║
  42. ECHO ║                                     │                                       ║
  43. ECHO ║                                     │ E - End Menu                          ║
  44. ECHO ╠═════════════════════════════════════╧═══════════════════════════════════════╣
  45. ECHO ║                                                                             ║
  46. ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
  47. KEY 1234CSENR Select :
  48. IF ERRORLEVEL 10 GOTO REGIST
  49. IF ERRORLEVEL  9 GOTO NEW-EAK-UTIL
  50. IF ERRORLEVEL  8 GOTO NEW-NET-CONT
  51. IF ERRORLEVEL  7 GOTO ENDE
  52. IF ERRORLEVEL  6 GOTO SAV-SDF
  53. IF ERRORLEVEL  5 GOTO P-SETUP
  54. IF ERRORLEVEL  4 GOTO NET-C-TD
  55. IF ERRORLEVEL  3 GOTO NET-DATA
  56. IF ERRORLEVEL  2 GOTO NET-GO
  57. IF ERRORLEVEL  1 GOTO NET-CONT
  58. IF ERRORLEVEL  0 GOTO ENDE
  59.  
  60. GOTO ENDE
  61.  
  62. :NET-CONT
  63. CALL NC-START.BAT
  64. ECHO.
  65. ECHO.
  66. PAUSE
  67. GOTO START
  68.  
  69. :NET-START
  70. IF "%2"=="stop" GOTO NET-C-TD
  71. IF "%2"=="STOP" GOTO NET-C-TD
  72. :NET-GO
  73. CALL NC-START.BAT GO
  74. GOTO START
  75.  
  76. :NET-DATA
  77. CALL NC-START.BAT DATA
  78. GOTO START
  79.  
  80. :NET-C-TD
  81. CALL TESTDISK.BAT
  82. GOTO START
  83.  
  84. :P-SETUP
  85. P-SETUP
  86. GOTO START
  87.  
  88. :SAV-SDF
  89. IF NOT EXIST ADRESSEN.SDF GOTO SAV-ERROR
  90. MD SDF-SAVE                > nul
  91. COPY *.SDF SDF-SAVE        > nul
  92. COPY *.CFG SDF-SAVE        > nul
  93. REN *.SDF *.S$F            > nul
  94. COPY SDF-SAVE\*.SDF        > nul
  95. DEL *.S$F                  > nul
  96. ECHO.
  97. ECHO The configuration has been saved to a local subdirectory.
  98. ECHO.
  99. ECHO Additional save it to a floppy disk ? (Y/N)  :
  100. KEY YN
  101. IF ERRORLEVEL 2 GOTO START
  102. ECHO Save to which drive (A,B) :
  103. KEY AB
  104. IF ERRORLEVEL 2 GOTO DRV-B
  105. IF ERRORLEVEL 1 GOTO DRV-A
  106. GOTO START
  107. :DRV-A
  108. COPY *.CFG A: > nul
  109. COPY *.SDF A: > nul
  110. ECHO.
  111. ECHO Net-Control configuration saved to drive A:.
  112. ECHO.
  113. PAUSE
  114. GOTO START
  115. :DRV-B
  116. COPY *.CFG B: > nul
  117. COPY *.SDF B: > nul
  118. ECHO.
  119. ECHO Net-Control configuration saved to drive B:.
  120. PAUSE
  121. GOTO START
  122. GOTO START
  123. :SAV-ERROR
  124. SOUND TUUT TUUT
  125. ECHO.
  126. ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
  127. ECHO ║         Before you can save your configuration files, you have              ║
  128. ECHO ║         to adjust Net-Control to your network.                              ║
  129. ECHO ║         At least define an addresslist of known addresses in                ║
  130. ECHO ║         the file ADRESSEN.SDF.                                              ║
  131. ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
  132. ECHO.
  133. PAUSE
  134. GOTO START
  135.  
  136. :NEW-NET-CONT
  137. ECHO In which drive is the disk with the new Net-Control version (A,B) :
  138. KEY AB
  139. IF ERRORLEVEL 2 GOTO DRIV-B
  140. IF ERRORLEVEL 1 GOTO DRIV-A
  141. GOTO START
  142. :DRIV-A
  143. A:INSTALL
  144. PAUSE
  145. GOTO START
  146. :DRIV-B
  147. B:INSTALL
  148. PAUSE
  149. GOTO START
  150.  
  151. :REGIST
  152. ECHO In which drive is the disk with the Net-Control authentisationcode ?
  153. ECHO Please enter a "-", if you don't have that disk at hand. (A,B,-) :
  154. KEY AB-
  155. IF ERRORLEVEL 3 GOTO REG-HERE
  156. IF ERRORLEVEL 2 GOTO REG-B
  157. IF ERRORLEVEL 1 GOTO REG-A
  158. GOTO START
  159. :REG-A
  160. NET-SNAP A:
  161. GOTO START
  162. :REG-B
  163. NET-SNAP B:
  164. GOTO START
  165. :REG-HERE
  166. NET-SNAP
  167. GOTO START
  168.  
  169.  
  170. :ENDE
  171. CLS